package cn.kinoko.model.manga.export;

import lombok.Data;

import java.util.List;

/**
 * @author kk
 */
@Data
public class TranslateDocxTemplateData {

    private String translator;
    private String proofreader;
    private String printer;
    private List<Page> pages;

    @Data
    public static class Page {
        private Integer page;
        private List<Content> contents;
    }

    @Data
    public static class Content {
        private Integer number;
        private String text;
        private String textAmend;
        private List<Comment> comments;

        public String getContent() {
            return textAmend != null && !textAmend.isEmpty() ? textAmend : text;
        }
    }

    @Data
    public static class Comment {
        private String name;
        private String comment;
    }

}
